//
//  FocusStarCell.m
//  LiveStar
//
//  Created by 漪珊 on 2017/2/4.
//  Copyright © 2017年 apple. All rights reserved.
//

#import "FocusStarCell.h"
#import "FocusStarModel.h"

@implementation FocusStarCell

- (void)awakeFromNib {
    [super awakeFromNib];
    kImageViewRadius(self.StarIcon, self.StarIcon.width/2);
}

- (void)setFocusModel:(FocusStarModel *)focusModel {
    _focusModel = focusModel;
    [self.StarIcon sd_setImageWithURL:[NSURL URLWithString:focusModel.u_avatar]placeholderImage:nil];
    self.name.text = focusModel.s_name;
    if ([focusModel.live intValue]) {
        self.liveState.hidden = NO;
    } else {
        self.liveState.hidden = YES;
    }
}
@end
